package com.xmfh.wemedia.mapper;

import com.xmfh.wemedia.model.DdArticle;
import com.xmfh.wemedia.model.DdMicro;
import com.xmfh.wemedia.vo.MicroVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: 胡桃
 * @Date: 2022/4/9 17:55
 * @Description: com.xmfh.wemedia.mapper
 * @version: 1.0
 */
@Mapper
public interface DdIndexMapper {
    List<DdArticle> listAllArticle();

    List<DdArticle> listArticleByHotOrderBy();

    List<DdArticle> listArticleByPubLocation(@Param("parameter") String parameter);

    List<DdArticle> listArticleByCategoryId(@Param("cid") Integer cid);

    List<DdArticle> listAllArticleByUid(@Param("uid") int uid);

    List<DdArticle> listArticleByViewDesc();

    List<MicroVO> listMicroByViewDesc();
}
